home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 3: Developer Tools
/
Linux Cubed Series 3 - Developer Tools.iso
/
devel
/
make
/
icmake-6.000
/
icmake-6
/
icmake
/
exec
/
funband.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-02-08
|
475 b
|
24 lines
/*
\funcref{fun\_band}{void fun\_band ()}
{}
{}
{pop(), push()}
{}
{funband.c}
{
This function pops two variables and pushes the bitwise and-ed result
of the {\em vu.intval} fields of these variables. The resulting
pushed variable is of type {\em e\_int}. } */
#include "icm-exec.h"
void fun_band ()
{
VAR_
tmp;
tmp.type = e_int;
tmp.vu.intval = pop().vu.intval & pop().vu.intval;
push (tmp);
}